const VueCompiler = require("@vue/compiler-sfc");
const { execQueryUrl } = require("./utils");
module.exports = function (content) {
  const param = execQueryUrl(this.resourceQuery);
  const res = VueCompiler.compileStyle({
    source: content,
    scoped: param.has("scoped"),
    id: param.get("id"),
  });
  return res.code;
};
